package com.example.movie.common.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity
data class Order(

    @PrimaryKey
    val id: Int = 0,

    @ColumnInfo(name = "planId")
    val planId: Int = 0,

    @ColumnInfo(name = "mobile")
    val mobile: String? = null,

    @ColumnInfo(name = "hallSeatId")
    val hallSeatId: Int = 0,

    @ColumnInfo(name = "salePrice")
    val salePrice: Float = 0f,

    @ColumnInfo(name = "payType")
    val payType: String? = null,

    @ColumnInfo(name = "orderTime")
    val orderTime: String? = null,

    @ColumnInfo(name = "state")
    val state: String? = null,

    @ColumnInfo(name = "movieId")
    val movieId: Int = 0,

    @ColumnInfo(name = "agentName")
    val agentName: String? = null,

    @ColumnInfo(name = "hallName")
    val hallName: String? = null,

    @ColumnInfo(name = "movieName")
    val movieName: String? = null,

    @ColumnInfo(name = "playTimeName")
    val playTimeName: String? = null,

    @ColumnInfo(name = "startTime")
    val startTime: String? = null,

    @ColumnInfo(name = "endTime")
    val endTime: String? = null,

    @ColumnInfo(name = "seatName")
    val seatName: String,

    @ColumnInfo(name = "playDay")
    val playDay: String? = null,

    @ColumnInfo(name = "orderId")
    val orderId: Long? = null

)